var app = angular.module('plunker', ['ui']);

app.controller('MainCtrl', function($scope, $http) {
    $scope.items=[
        {
            id: 23,
            name: 'foobar',
            specialties: [
                {
                    "id" : 6,
                    "text" : "Sixth",
                    "color" : "yellow"
                },
                {
                    "id" : 7,
                    "text" : "Seventh",
                    "color" : "blue"
                },
                {
                    "id" : 8,
                    "text" : "Eighth",
                    "color" : "blue"
                }
            ]
        },
        {
            id: 12,
            name: 'radasfdaf',
            specialties: [
                {
                    "id" : 1,
                    "text" : "First"
                },
                {
                    "id" : 2,
                    "text" : "Second",
                    "color" : "red"
                },
                {
                    "id" : 3,
                    "text" : "Third",
                    "color" : "orange"
                }
            ]
        }
    ];
    $scope.selectedItems=[];
});
